<template>
  <div class="carousel-container">
    <el-carousel>
      <el-carousel-item v-for="item in items" :key="item.id">
        <div class="carousel-item">{{ item.text }}</div>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
export default {
  data() {
    return {
      items: [
        { id: "carousel1", text: "轮播区域1" },
        { id: "carousel2", text: "轮播区域2" },
        { id: "carousel3", text: "轮播区域3" },
      ],
    };
  },
};
</script>

<style>
.el-carousel {
  height: 400px;
}
.el-carousel__item {
  height: 400px;
  line-height: 400px;
}
.el-carousel__button {
  width: 72px;
  height: 4px;
  margin: 10px 20px;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}

.carousel-container {
  text-align: center;
  font-size: 30px;
  color: #fff;
}
.el-carousel__container {
  height: 400px;
}
.el-carousel__arrow{
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
}
.el-icon-arrow-left{
  font-size: 20px;
  vertical-align: -3px;
}
.el-icon-arrow-right{
  font-size: 20px;
  vertical-align: -3px;
}
</style>